<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>企业添加</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/check_jquery.js"></script>
	<script type="text/javascript" src="<%=basePath %>/js/dbdialog/lhgdialog.min.js?self=false&<%=Util.DIALOG_SKIN %>"></script>
	<script type="text/javascript" src="<%=path%>/js/My97DatePicker/WdatePicker.js" defer="defer"></script><base target="_self" />
	<script type="text/javascript" src="<%=basePath%>/js/util.js"></script>
	<script type="text/javascript">
	  	function fnSearch(){
	  		var api = frameElement.api, W = api.opener;
		  	W.zcForm.submit();
      	}
      	function deleFj(id,vname,t){
			var vids=vname+id;
			$.ajax({
				type:"POST",
				url:"<%=basePath%>/zczb/zc_deleCheckFj.action?fjId="+id,
				success:function(data){
					if(data=="1"){
						document.getElementById(vids).style.display="none";
						document.getElementById('fjfile'+t).style.display="inline";
					}else{
						msgDialog('删除失败！','fail.png');
					}		  			
			    }
			});				
		}
	</script>
	<style>
		* html body {padding:0px 0px 6px 0px;}
	</style>
  </head>
  
  <body>
	<div  class="body-box">
		<div id="container">
			<form action="<%=basePath%>/zczb/zc_checkSave.action" method="post" name="form1" enctype="multipart/form-data">
		    	<table border="0" cellspacing="0" cellpadding="0"  width="100%" class="info_table">
					<tr>
						<td width="20%" class="title_td">标题：</td>
						<td><input name="checkTitle" type="text" value="${checkInfo.checkTitle }" id="bit1" size="50%"><SPAN class="note4">*</SPAN></td>
					</tr>
					<tr>
						<td width="20%" class="title_td">年度季度：</td>
						<td>
							<s:select list="yearList" listKey="id" listValue="yearName" name="checkYear" value="%{cYear}" theme="simple"></s:select>
				   			<s:select list="#{1:'1',2:'2',3:'3',4:'4'}" name="checkQuarter" value="%{cQuarter}" theme="simple"></s:select>
						</td>
					</tr>
					<tr>
						<td class="title_td">现场核查情况报告：</td>
						<td>
							<s:if test="%{fjList1.size>0}">
								<input type="file" name="fjFile" value="" id="fjfile1" style="display: none;">
								<s:iterator id="fj" value="fjList1">
									<span id="1_${fj.id}">
										<a href="<%=filePath%>/${fj.fjPath }" target="_blank">${fj.fjTitle }</a>
										<a href="javascript:deleFj('${fj.id}','1_','1')" title="删除重新上传"><img src="<%=basePath%>/images/deletex.gif"/></a>
									</span>
								</s:iterator>
							</s:if>
							<s:else>
								<input type="file" name="fjFile" value="" id="bit1"><label class="note4">*</label>
							</s:else>
						</td>
					</tr>
					<s:if test="%{display}">
					<tr>
						<td class="title_td">专题分析报告：</td>
						<td>
							<s:if test="%{fjList2.size>0}">
								<input type="file" name="docFile" value="" id="fjfile2" style="display: none">
								<s:iterator id="fj" value="fjList2">
									<span id="2_${fj.id}">
										<a href="<%=filePath%>/${fj.fjPath }" target="_blank">${fj.fjTitle }</a>
										<a href="javascript:deleFj('${fj.id}','2_','2')" title="删除重新上传"><img src="<%=basePath%>/images/deletex.gif"/></a>
									</span>
								</s:iterator>
							</s:if>
							<s:else>
								<input type="file" name="docFile" value="" id="bit2"><label class="note4">*</label>
							</s:else>
						</td>
					</tr>
					</s:if>
					<tr>
						<td class="title_td" colspan="2">备注：</td>
					</tr>
					<tr>
						<td colspan="2"><textarea rows="5" cols="60" name="checkMsg">${checkInfo.checkMsg }</textarea> </td>
					</tr>
					<tr>
						<td align="center" colspan="2">
							<center>
							<input type="submit" name="btntj" class="link_input" id="btnSubmit1" value="提 交">
							</center>
						</td>
					</tr>
			  	</table>
				<input type="hidden" name="objId" value="${objId }">
			</form>
		</div>
	</div>
  </body>
  <s:if test="%{tip!=null}">
	<script>
	alert('${tip}');
		fnSearch();
	</script>
  </s:if>
</html>
